package xerr

import "gorm.io/gorm"

const OK = 200

var ErrorNotFount = gorm.ErrRecordNotFound

/**(前两位位代表业务，后两位位代表具体功能)**/

const (
	ServerError = iota + 1000
	ParamError
	TokenExpireError
	TokenError
	TokenNotExistError
	TokenGenerateError
	DBError
	DbUpdateAffectedZeroError
	RdsError
)

const (
	UserNotExistError = iota + 2000
	UserExistError
	UserPasswordError
	UserTelExistError
)
const (
	ArticleNotExistError = iota + 2000
)
